<%@page import="java.sql.Connection"%>
<%@page import="fr.cinescope2014.daos.Connexion"%>
<%@page contentType="text/html" pageEncoding="UTF-8" %>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Accueil FO</title>
        <link href="/CineScope2014FO/css/principal.css" rel="stylesheet" type="text/css">
    </head>

    <body>
        <%@include file="../jsp/_entete.jsp" %>
        <%@include file="../jsp/_rechercher.jsp" %>
        <%@include file="../jsp/_sommaire.jsp" %>

<div id="centre">

<!--    <h3>Accueil</h3>-->

    <%-- Modele --%>
    <%!
        private String lsMessage;
    %>

    <%
        lsMessage = "";
        if(session.getAttribute("connexionCineScope") == null) {
            Connection lcn = Connexion.getConnexionMySQL("127.0.0.1", "cineScope2014", "3306", "root", "");
            session.setAttribute("connexionCineScope", lcn);
            lsMessage = "nouvelle session";
        }
        else {
            lsMessage = "session deja existante";
        }
    %>
    
    <img src="/CineScope2014FO/images/cinema_salle_2.jpg" alt="Image salle de cinéma ..." width="500"/>

    <br/>
    <label><%= lsMessage %></label>
</div>

        <%@include file="../jsp/_pied.jsp" %>
    </body>
</html>